Skip to content

docs(aigw): workspace_id is a required UUID, and how to find it - #1153

Merged
vrv-panw merged 2 commits into
mainfrom
docs/workspace-id-uuid
Nov 3, 2026
Merged

vrv-panw merged 2 commits into
mainfrom
docs/workspace-id-uuid

Conversation

@vrv-panw

@vrv-panw vrv-panw commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Why

From a customer thread: Admin API calls such as configs and guardrails, made with an SCM service-account token, need workspace_id as a UUID. Our docs said the opposite in three ways:

  • that a slug works
  • that leaving workspace_id out falls back to the default workspace
  • and the first-request curl didn't send it at all

The UUID also isn't shown anywhere next to the slug in the console.

What

  • admin-api/introduction.mdx
    • The first-request curl sends ?workspace_id=<workspace_uuid>.
    • The scoping section is corrected: workspace_id is required, it's the UUID, and it goes in the query string on every method.
    • New Find a workspace's ID section: call GET /workspaces?exact_name=… on the Workspace Service, or copy the UUID from the console URL.
    • The Workspace Service host is added to the base URL table.
  • org-management/workspaces.mdx
    • New Workspace IDs section comparing the slug and the UUID.
    • Points to the Workspace Service for creating, getting and updating workspaces.
  • error.mdx, help-center/you-do-not-have-enough-permissions.mdx, enforce-default-config.mdx: these repeated the same old claims and are corrected the same way.
  • org-management.mdx: the Workspaces card linked to Portkey's endpoint docs. It now links to our Workspaces page.
  • docs.json: API navigation synced from PaloAltoNetworks/openapi with sync_api_nav.py. This adds the new Workspaces group, plus Messages, Access Policies and Egress Allowlist from openapi#6.

Merge order

Merge PaloAltoNetworks/openapi#7 first. The new /aigw/api-reference/workspaces/* pages are generated from it.

Checks

  • check_nav_page_parity.py: OK
  • check_anchors.py: the same known failures as main, nothing new
  • check_prose_endpoints.py: the remaining items are existing ones in cas.mdx and stale allow-list entries, nothing from this change

🤖 Generated with Claude Code

The Admin API docs said a workspace slug works for workspace_id and that
leaving it out falls back to the default workspace. Neither is true:
an organisation-scoped access token needs workspace_id, and it must be
the workspace's UUID, which the console doesn't show next to the slug.

- admin-api/introduction: the first-request curl now sends workspace_id;
  scoping section corrected (required, UUID, query parameter on every
  method); new "Find a workspace's ID" section using the Workspace
  Service; Workspace Service added to the base URL table
- workspaces: new "Workspace IDs" section, slug vs UUID, and the
  Workspace Service for creating and updating workspaces
- error, help-center permissions, enforce-default-config: same
  correction where they repeated the old claims
- org-management: the Workspaces card pointed at Portkey's endpoint
- docs.json: API nav synced from PaloAltoNetworks/openapi, adding the
  Workspaces group and the Messages, Access Policies and Egress
  Allowlist groups

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 3, 2026 17:32
@mintlify

mintlify Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
portkey-docs 🟢 Ready View Preview Nov 3, 2026, 5:47 PM

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The curl examples still contradict the corrected guidance by using non-UUID workspace IDs and placing the provider POST’s workspace_id in the body instead of the query string.

1 open issue
What changed in this PR

This PR corrects Prisma AIRS Admin API documentation to require workspace UUIDs in query parameters and explains how to find them.

Changes:

  • Corrects workspace-scoping guidance and selected request examples.
  • Adds UUID lookup instructions through the Workspace Service and console URL.
  • Updates API navigation and fixes the Workspaces card link.
File Description
docs.json Adds API groups and analytics endpoints.
aigw/​product/​enterprise-offering/​org-management/​workspaces.mdx Explains UUIDs versus slugs and Workspace Service operations.
aigw/​product/​enterprise-offering/​org-management.mdx Links the Workspaces card to the AIRS page.
aigw/​product/​administration/​enforce-default-config.mdx Moves workspace scoping into the example’s query string.
aigw/​help-center/​you-do-not-have-enough-permissions.mdx Corrects workspace-scoping troubleshooting guidance.
aigw/​api-reference/​admin-api/​introduction.mdx Documents required UUID scoping and workspace lookup methods.
aigw/​api-reference/​admin-api/​error.mdx Corrects workspace parameters in error-resolution guidance.

Review effort: Balanced

…y string

Addresses review: the two curl examples under the corrected note still
used a ws-abc123 slug, and the provider POST still put workspace_id in
the body.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

There are no active review issues with the documentation updates clarifying workspace UUID scoping and lookup.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@vrv-panw
vrv-panw merged commit 1209807 into main Nov 3, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
staging — b81c90af Deployed Nov 3, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants